/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

export default {
  path: '/purchase',
  component: Layout,
  name: 'purchase',
  meta: {
    title: '采购管理',
    icon: 'el-icon-shopping-cart-2'
  },
  children: [
    {
      path: 'supplier',
      component: () => import('@/views/purchase/supplier'),
      name: 'supplier',
      meta: { title: '供应商管理', noCache: true, icon: 'list' }
    },
    {
      path: 'material',
      component: () => import('@/views/purchase/material'),
      name: 'material',
      meta: { title: '物料管理', noCache: true, icon: 'list' }
    },
    {
      path: 'mp',
      component: () => import('@/views/purchase/mp'),
      name: 'mp',
      meta: { title: '采购信息', noCache: true, icon: 'list' }
    },
    {
      path: 'equipment',
      component: () => import('@/views/purchase/equipment'),
      name: 'equipment',
      meta: { title: '设备采购', noCache: true, icon: 'list' }
    },
    {
      path: 'eo',
      component: () => import('@/views/purchase/eo'),
      name: 'eo',
      meta: { title: '工程外包', noCache: true, icon: 'list' }
    },
    {
      path: 'inquiry',
      component: () => import('@/views/purchase/inquiry'),
      name: 'inquiry',
      meta: { title: '询价单', noCache: true, icon: 'list' }
    },
    // {
    //   path: 'voucher',
    //   component: () => import('@/views/purchase/voucher'),
    //   name: 'voucher',
    //   meta: { title: '支出凭单', noCache: true, icon: 'list' }
    // },
    {
      path: 'invoice',
      component: () => import('@/views/purchase/invoice'),
      name: 'invoice',
      meta: { title: '发票管理', noCache: true, icon: 'list' }
    },
    {
      path: 'summary',
      component: () => import('@/views/purchase/summary'),
      name: 'summary',
      meta: { title: '采购汇总', noCache: true, icon: 'list' }
    }
  ]
}
